package com.xtzn.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xtzn.mapper.IRetainedRecordMapper;
import com.xtzn.mapper.entity.RetainedRecord;
import com.xtzn.service.IRetainedRecordService;
import com.xtzn.vo.TaskRequest;

/**
 * 功能描述: <br>
 * **
 * 
 * @author zyw
 * @version [版本号, 2018年4月26日]
 */
@Service
public class RetainedRecordServiceImpl implements IRetainedRecordService {

	@Autowired
	private IRetainedRecordMapper retainedReportDao;
	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月26日]
	 */
	@Override
	public int insertRetainedReport(RetainedRecord retainedReport) {
		// TODO Auto-generated method stub
		return retainedReportDao.insertRetainedReport(retainedReport);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月26日]
	 */
	@Override
	public int updateRetainedCnt(RetainedRecord retainedReport) {
		// TODO Auto-generated method stub
		return retainedReportDao.updateRetainedCnt(retainedReport);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年5月3日]
	 */
	@Override
	public List<Map<String, Object>> selectRetainedRecordByCondition(TaskRequest taskRequest) {
		// TODO Auto-generated method stub
		return retainedReportDao.selectRetainedRecordByCondition(taskRequest);
	}

}
